package nl.grol.yakshop.web.servlet.json;

import java.util.logging.Logger;


class OrderDetails {
    private static final Logger LOGGER = Logger.getLogger(OrderDetails.class.getName());

    private Double milk;
	private Integer skins;
	
	@SuppressWarnings("unused")
	private OrderDetails() {
		// needed for gson
	}

	public OrderDetails(Double milk, Integer skins) {
		super();
		this.milk = milk;
		this.skins = skins;
	}

	public Double getMilk() {
		return milk;
	}

	public Integer getSkins() {
		return skins;
	}

	public boolean isValid() {
		boolean status = true;
		
		if( this.milk == null ) {
			LOGGER.warning("Missing milk");
			status = false;
		}
		if( this.skins == null ) {
			LOGGER.warning("Missing skins");
			status = false;
		}
		
		return status;
	}

	
}
